from twisted.spread import pb
from twisted.internet import reactor
class Echoer(pb.Root):
    def remote_login(self, st):
        print 'login'
        print st['uid']
        return 'succ'
    def remote_test(self):
        return self

if __name__ == '__main__':
    reactor.listenTCP(8003, pb.PBServerFactory(Echoer()))
    print "Server Go..."
    reactor.run()